package com.gds.wiki.cloud.orderCenter.server;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.ComponentScan;

/**
 * Created by Administrator on 2017/7/16.
 */

@SpringBootApplication
@EnableDiscoveryClient          //通过该注解，实现服务发现，注册
@EnableFeignClients(basePackages = {"com.gds.wiki.cloud.*.client.*"})
@ComponentScan(basePackages={"com.gds.wiki.cloud.orderCenter.server.*",
        "com.gds.wiki.cloud.memberCenter.client.*",
        "com.gds.wiki.cloud.framework.web.*",
        "com.gds.wiki.cloud.framework.database.*",
        "com.gds.wiki.cloud.oauth2.*"
})//扫描其他模块包
@MapperScan("com.gds.wiki.cloud.orderCenter.server.modular.*.mapper")
public class OrderProviderApplication {
    public static void main(String args[]){

        SpringApplication.run(OrderProviderApplication.class, args);
    }
}


